package com.data.app.pojo.primary;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

@Entity
@Table(name = "qh_site_class_result", schema = "base", catalog = "")
public class QhSiteClassResultEntity {
    private String uuid;
    private String province;
    private String city;
    private String area;
    private String affiliatedFileName;
    private String objectId1;
    private String objectId;
    private String usaClassi;
    private Double shapeLeng;
    private Double shapeLe1;
    private Double shapeArea;
    private String coordinates;
    private String objectCode;
    private String isValid;
    private String partitionFlag;
    private String createUser;
    private Timestamp createTime;
    private String updateUser;
    private Timestamp updateTime;
    @Id
    @Column(name = "uuid", nullable = false, length = 50)
    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    @Basic
    @Column(name = "province", nullable = true, length = 255)
    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    @Basic
    @Column(name = "city", nullable = true, length = 255)
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Basic
    @Column(name = "area", nullable = true, length = 255)
    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    @Basic
    @Column(name = "affiliated_file_name", nullable = true, length = 1000)
    public String getAffiliatedFileName() {
        return affiliatedFileName;
    }

    public void setAffiliatedFileName(String affiliatedFileName) {
        this.affiliatedFileName = affiliatedFileName;
    }

    @Basic
    @Column(name = "object_id_1", nullable = true, length = 32)
    public String getObjectId1() {
        return objectId1;
    }

    public void setObjectId1(String objectId1) {
        this.objectId1 = objectId1;
    }

    @Basic
    @Column(name = "object_id", nullable = true, length = 32)
    public String getObjectId() {
        return objectId;
    }

    public void setObjectId(String objectId) {
        this.objectId = objectId;
    }

    @Basic
    @Column(name = "usa_classi", nullable = true, length = 10)
    public String getUsaClassi() {
        return usaClassi;
    }

    public void setUsaClassi(String usaClassi) {
        this.usaClassi = usaClassi;
    }

    @Basic
    @Column(name = "shape_leng", nullable = true, precision = 7)
    public Double getShapeLeng() {
        return shapeLeng;
    }

    public void setShapeLeng(Double shapeLeng) {
        this.shapeLeng = shapeLeng;
    }

    @Basic
    @Column(name = "shape_le_1", nullable = true, precision = 7)
    public Double getShapeLe1() {
        return shapeLe1;
    }

    public void setShapeLe1(Double shapeLe1) {
        this.shapeLe1 = shapeLe1;
    }

    @Basic
    @Column(name = "shape_area", nullable = true, precision = 7)
    public Double getShapeArea() {
        return shapeArea;
    }

    public void setShapeArea(Double shapeArea) {
        this.shapeArea = shapeArea;
    }

    @Basic
    @Column(name = "coordinates", nullable = true, length = -1)
    public String getCoordinates() {
        return coordinates;
    }

    public void setCoordinates(String coordinates) {
        this.coordinates = coordinates;
    }

    @Basic
    @Column(name = "object_code", nullable = true, length = 255)
    public String getObjectCode() {
        return objectCode;
    }

    public void setObjectCode(String objectCode) {
        this.objectCode = objectCode;
    }

    @Basic
    @Column(name = "is_valid", nullable = false, length = 1)
    public String getIsValid() {
        return isValid;
    }

    public void setIsValid(String isValid) {
        this.isValid = isValid;
    }

    @Basic
    @Column(name = "partition_flag", nullable = true, length = 255)
    public String getPartitionFlag() {
        return partitionFlag;
    }

    public void setPartitionFlag(String partitionFlag) {
        this.partitionFlag = partitionFlag;
    }

    @Basic
    @Column(name = "create_user", nullable = true, length = 32)
    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    @Basic
    @Column(name = "create_time", nullable = true)
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Basic
    @Column(name = "update_user", nullable = true, length = 32)
    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    @Basic
    @Column(name = "update_time", nullable = true)
    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        QhSiteClassResultEntity that = (QhSiteClassResultEntity) o;
        return Objects.equals(uuid, that.uuid) && Objects.equals(province, that.province) && Objects.equals(city, that.city) && Objects.equals(area, that.area) && Objects.equals(affiliatedFileName, that.affiliatedFileName) && Objects.equals(objectId1, that.objectId1) && Objects.equals(objectId, that.objectId) && Objects.equals(usaClassi, that.usaClassi) && Objects.equals(shapeLeng, that.shapeLeng) && Objects.equals(shapeLe1, that.shapeLe1) && Objects.equals(shapeArea, that.shapeArea) && Objects.equals(coordinates, that.coordinates) && Objects.equals(objectCode, that.objectCode) && Objects.equals(isValid, that.isValid) && Objects.equals(partitionFlag, that.partitionFlag) && Objects.equals(createUser, that.createUser) && Objects.equals(createTime, that.createTime) && Objects.equals(updateUser, that.updateUser) && Objects.equals(updateTime, that.updateTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(uuid, province, city, area, affiliatedFileName, objectId1, objectId, usaClassi, shapeLeng, shapeLe1, shapeArea, coordinates, objectCode, isValid, partitionFlag, createUser, createTime, updateUser, updateTime);
    }
}
